package com.wjc.train.member.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.common.req.MemberTicketSaveReq;
import com.wjc.train.member.req.TicketQueryReq;
import com.wjc.train.member.req.TicketSaveReq;
import com.wjc.train.member.resp.TicketQueryResp;

import java.util.List;

/**
 * <p>
 * 会员车票 服务类
 * </p>
 *
 * @author Guessed
 * @since 2023-08-22
 */
public interface ITicketService  {

  /**
     * 保存或修改
     * @param ticketSaveReq
     */
    void save(TicketSaveReq ticketSaveReq);

    void save(MemberTicketSaveReq ticketSaveReq);

    /**
     * 分页查询
     * @param page
     * @param ticketQueryReq
     * @return
     */
    IPage<TicketQueryResp> queryList(IPage<TicketQueryResp> page, TicketQueryReq ticketQueryReq);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);


  void saveList(List<MemberTicketSaveReq> ticketSaveReqList);
}
